/**
 * 
 */
package net.sf.cldsql.sql2json.main;

import java.util.regex.Pattern;


/**
 * UrlServiceEntry
 */
public class UrlServiceEntry {
    private String requestMethod;
    private Pattern urlPattern;
    private String service;
    private String method;

    public UrlServiceEntry (String requestMethod, String urlPattern, String service, String method) {
        this.requestMethod = requestMethod;
        this.urlPattern = Pattern.compile(urlPattern);
        this.service = service;
        this.method = method;
    }

    /**
     * @return service
     */
    public String getService() {
        return service;
    }

    /**
     * @return urlPattern
     */
    public Pattern getUrlPattern() {
        return urlPattern;
    }

    /**
     * @return method
     */
    public String getMethod() {
        return method;
    }

    /** @return requestMethod */
    public String getRequestMethod() {
        return requestMethod;
    }
    
}
